<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: TreeHeap&lt; T &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d7/da7/class_tree_heap-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">TreeHeap&lt; T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>树堆的实现  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a>&gt;</code></p>
<div class="dynheader">
TreeHeap&lt; T &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/da6/class_tree_heap__coll__graph.png" border="0" usemap="#a_tree_heap_3_01_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="a_tree_heap_3_01_t_01_4_coll__map" id="a_tree_heap_3_01_t_01_4_coll__map">
<area shape="rect" title="树堆的实现" alt="" coords="5,5,153,229"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d7b/struct_tree_heap_1_1_node.html">Node</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9c06df154358196628bf2a43c0e45b45" id="r_a9c06df154358196628bf2a43c0e45b45"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9c06df154358196628bf2a43c0e45b45">TreeHeap</a> ()</td></tr>
<tr class="separator:a9c06df154358196628bf2a43c0e45b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3b4c8d965942a923fa22689d755f814" id="r_aa3b4c8d965942a923fa22689d755f814"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa3b4c8d965942a923fa22689d755f814">empty</a> () const</td></tr>
<tr class="separator:aa3b4c8d965942a923fa22689d755f814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f0e0675685cc3413965231f33b6b849" id="r_a0f0e0675685cc3413965231f33b6b849"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0f0e0675685cc3413965231f33b6b849">insert</a> (const T &amp;val)</td></tr>
<tr class="separator:a0f0e0675685cc3413965231f33b6b849"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef1344026932a8cf74c33d7224309c30" id="r_aef1344026932a8cf74c33d7224309c30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aef1344026932a8cf74c33d7224309c30">erase</a> (const T &amp;val)</td></tr>
<tr class="separator:aef1344026932a8cf74c33d7224309c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44c9e56e717cd4fcb8a1f8900b708e14" id="r_a44c9e56e717cd4fcb8a1f8900b708e14"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a44c9e56e717cd4fcb8a1f8900b708e14">get_min</a> () const</td></tr>
<tr class="separator:a44c9e56e717cd4fcb8a1f8900b708e14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07c0c2ac95feff5621d1ad976675599" id="r_ac07c0c2ac95feff5621d1ad976675599"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac07c0c2ac95feff5621d1ad976675599">merge</a> (<a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a> &amp;other)</td></tr>
<tr class="separator:ac07c0c2ac95feff5621d1ad976675599"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class TreeHeap&lt; T &gt;</div><p>树堆的实现 </p>

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00005">5</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a9c06df154358196628bf2a43c0e45b45" name="a9c06df154358196628bf2a43c0e45b45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c06df154358196628bf2a43c0e45b45">&#9670;&#160;</a></span>TreeHeap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;<a class="el" href="../../d1/d3a/class_tree_heap.html">::TreeHeap</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa3b4c8d965942a923fa22689d755f814" name="aa3b4c8d965942a923fa22689d755f814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3b4c8d965942a923fa22689d755f814">&#9670;&#160;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;::empty </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a id="aef1344026932a8cf74c33d7224309c30" name="aef1344026932a8cf74c33d7224309c30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef1344026932a8cf74c33d7224309c30">&#9670;&#160;</a></span>erase()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;::erase </td>
          <td>(</td>
          <td class="paramtype">const T &amp;</td>          <td class="paramname"><span class="paramname"><em>val</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00027">27</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d1/d3a/class_tree_heap_aef1344026932a8cf74c33d7224309c30_cgraph.png" border="0" usemap="#ad1/d3a/class_tree_heap_aef1344026932a8cf74c33d7224309c30_cgraph" alt=""/></div>
<map name="ad1/d3a/class_tree_heap_aef1344026932a8cf74c33d7224309c30_cgraph" id="ad1/d3a/class_tree_heap_aef1344026932a8cf74c33d7224309c30_cgraph">
<area shape="rect" title=" " alt="" coords="5,29,124,56"/>
<area shape="rect" href="../../d1/d3a/class_tree_heap.html#ac07c0c2ac95feff5621d1ad976675599" title=" " alt="" coords="172,29,294,56"/>
<area shape="poly" title=" " alt="" coords="124,40,156,40,156,45,124,45"/>
<area shape="poly" title=" " alt="" coords="204,30,199,21,202,11,214,5,233,3,253,5,264,12,261,16,251,10,233,8,215,10,206,15,204,20,208,28"/>
</map>
</div>

</div>
</div>
<a id="a44c9e56e717cd4fcb8a1f8900b708e14" name="a44c9e56e717cd4fcb8a1f8900b708e14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44c9e56e717cd4fcb8a1f8900b708e14">&#9670;&#160;</a></span>get_min()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;::get_min </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00037">37</a> 行定义.</p>

</div>
</div>
<a id="a0f0e0675685cc3413965231f33b6b849" name="a0f0e0675685cc3413965231f33b6b849"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f0e0675685cc3413965231f33b6b849">&#9670;&#160;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">const T &amp;</td>          <td class="paramname"><span class="paramname"><em>val</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00022">22</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d1/d3a/class_tree_heap_a0f0e0675685cc3413965231f33b6b849_cgraph.png" border="0" usemap="#ad1/d3a/class_tree_heap_a0f0e0675685cc3413965231f33b6b849_cgraph" alt=""/></div>
<map name="ad1/d3a/class_tree_heap_a0f0e0675685cc3413965231f33b6b849_cgraph" id="ad1/d3a/class_tree_heap_a0f0e0675685cc3413965231f33b6b849_cgraph">
<area shape="rect" title=" " alt="" coords="5,29,124,56"/>
<area shape="rect" href="../../d1/d3a/class_tree_heap.html#ac07c0c2ac95feff5621d1ad976675599" title=" " alt="" coords="172,29,294,56"/>
<area shape="poly" title=" " alt="" coords="124,40,156,40,156,45,124,45"/>
<area shape="poly" title=" " alt="" coords="204,30,199,21,202,11,214,5,233,3,253,5,264,12,261,16,251,10,233,8,215,10,206,15,204,20,208,28"/>
</map>
</div>

</div>
</div>
<a id="ac07c0c2ac95feff5621d1ad976675599" name="ac07c0c2ac95feff5621d1ad976675599"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac07c0c2ac95feff5621d1ad976675599">&#9670;&#160;</a></span>merge()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt;::merge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d1/d3a/class_tree_heap.html">TreeHeap</a>&lt; T &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em>other</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a> 第 <a class="el" href="../../d5/df2/tree_heap_8hpp_source.html#l00044">44</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_cgraph.png" border="0" usemap="#ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_cgraph" alt=""/></div>
<map name="ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_cgraph" id="ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_cgraph">
<area shape="rect" title=" " alt="" coords="5,29,128,56"/>
<area shape="poly" title=" " alt="" coords="45,30,41,20,44,11,52,5,67,3,82,5,90,12,86,16,80,10,66,8,54,10,48,14,46,20,50,28"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_icgraph.png" border="0" usemap="#ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_icgraph" alt=""/></div>
<map name="ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_icgraph" id="ad1/d3a/class_tree_heap_ac07c0c2ac95feff5621d1ad976675599_icgraph">
<area shape="rect" title=" " alt="" coords="172,31,294,57"/>
<area shape="poly" title=" " alt="" coords="261,18,251,12,233,9,215,11,206,16,204,21,208,29,204,32,199,22,202,12,214,6,233,4,253,7,264,13"/>
<area shape="rect" href="../../d1/d3a/class_tree_heap.html#aef1344026932a8cf74c33d7224309c30" title=" " alt="" coords="5,5,124,32"/>
<area shape="poly" title=" " alt="" coords="156,35,124,30,125,25,157,30"/>
<area shape="rect" href="../../d1/d3a/class_tree_heap.html#a0f0e0675685cc3413965231f33b6b849" title=" " alt="" coords="5,56,124,83"/>
<area shape="poly" title=" " alt="" coords="157,58,125,63,124,58,156,53"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/container/<a class="el" href="../../d5/df2/tree_heap_8hpp_source.html">treeHeap.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
